<template>
  <div>
    <div class="container-title">
      <img
        src="../../assets/images/icon_h1h6rlt6v8d/zuojiantou7.png"
        mode=""
        @click="imaged"
      />
    </div>
  </div>
</template>

<script>
import { userStore } from "../../stores/user.ts";
export default {
  name: "navitor-title",
  data() {
    return {
      user: "",
    };
  },
  methods: {
    imaged() {
      sessionStorage.removeItem("file");
      this.user.Get_CheckSub_Data1 = {};
      this.user.Tz_End = {};
      sessionStorage.removeItem("data1");
      sessionStorage.removeItem("Tz_End");
      sessionStorage.removeItem("xq");
      this.$router.replace("/tab");
    },
  },
  created() {
    this.user = userStore();
  },
};
</script>

<style>
.container-title {
  height: 50px;
  display: flex;
  padding-left: 20px;
  padding-right: 20px;
  align-items: center;
  color: #000000;
  font-size: 35px;
  background-color: #d3c3a9;
  font-weight: 500;
}

.ztl {
  height: 20px;
  background-color: aliceblue;
}
img {
  width: 40px;
  height: 40px;
}
span {
  margin: auto;
}
@media screen and (orientation: portrait) {
  .container-title {
    height: 60px;
    display: flex;
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
    font-size: 30px;
    color: #000000;
    background-color: #d3c3a9;
    font-weight: 500;
  }

  .ztl {
    height: 20px;
    background-color: aliceblue;
  }
  img {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    z-index: 1000;
  }
  span {
    margin: auto;
  }
  button {
    width: 40px;
    height: 40px;
  }
}
</style>
